]> git.r.bdr.sh - rbdr/super-polarity/blame - Super Polarity/Ship.cs
Moves to ActorManager arch + Actor Inherited stuff
[rbdr/super-polarity] / Super Polarity / Ship.cs
CommitLineData
f8aec187
BB
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Microsoft.Xna.Framework;
6using Microsoft.Xna.Framework.Graphics;
7
8namespace SuperPolarity
9{
10 class Ship : Actor
11 {
12 public enum Polarity : byte { Negative, Positive, Neutral };
13
14 protected uint HP;
15 protected Polarity CurrentPolarity;
16
17 public void SwitchPolarity()
18 {
19 if (CurrentPolarity == Polarity.Positive)
20 {
21 CurrentPolarity = Polarity.Negative;
22 }
23 else
24 {
25 CurrentPolarity = Polarity.Positive;
26 }
27 }
28
29 public void SetPolarity(Polarity newPolarity)
30 {
31 CurrentPolarity = newPolarity;
32 }
33
34 public virtual void Shoot()
35 {
36 }
37 }
38}